<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();

/* **** 版权所有 ****

 程序开发：网钛科技
 网钛CMS官网：http://otcms.com
 网钛IDC官网：http://idccms.com
 ＱＱ：877873666
 微信：QQ877873666
 邮箱：877873666@qq.com

 **** 版权所有 **** */


//打开用户表，并检测用户是否登录
$MB->Open('','login');

$skin->WebTop();

echo('
<script language="javascript" type="text/javascript" src="js/sysAdmin.js?v='. OT_VERSION .'"></script>
');


switch($mudi){
	default:
		$MB->IsAdminRight('alertBack');
		manage();
		break;

}

$skin->WebBottom();

$MB->Close();
$DB->Close();





// 设置
function manage(){
	global $DB,$skin,$mudi,$sysAdminArr;

	$dataMode = OT::GetStr('dataMode');

	$revexe = $DB->query('select * from '. OT_dbPref .'sysAdmin');
		if ($row = $revexe->fetch()){
			$SA_adminLoginKey	= $row['SA_adminLoginKey'];
			$SA_isAutoLogin		= $row['SA_isAutoLogin'];
			$SA_skinWidth		= $row['SA_skinWidth'];
			$SA_userSaveMode	= $row['SA_userSaveMode'];
			$SA_loginMode		= $row['SA_loginMode'];
			$SA_isLan			= $row['SA_isLan'];
			$SA_sendUrlMode		= $row['SA_sendUrlMode'];
			$SA_checkUrlMode	= $row['SA_checkUrlMode'];
			$SA_updateUrlMode	= $row['SA_updateUrlMode'];
			$SA_exitMinute		= $row['SA_exitMinute'];
			$SA_leftMenuNote	= $row['SA_leftMenuNote'];
			$SA_editorMode		= $row['SA_editorMode'];
			$SA_memberLogRank	= $row['SA_memberLogRank'];
			$SA_updateUrl		= $row['SA_updateUrl'];
			$SA_getUrlMode		= $row['SA_getUrlMode'];
			$SA_collUrlMode		= $row['SA_collUrlMode'];
			$SA_softUpdateDay	= $row['SA_softUpdateDay'];
			$SA_softLastTime	= $row['SA_softLastTime'];
			$SA_softVerUpdateDay= $row['SA_softVerUpdateDay'];
			$SA_softVerLastTime	= $row['SA_softVerLastTime'];
			$SA_copyrightName	= $row['SA_copyrightName'];
			$SA_copyrightUrl	= $row['SA_copyrightUrl'];
			$SA_isConnInternet	= $row['SA_isConnInternet'];
			$SA_isAnnounShow	= $row['SA_isAnnounShow'];
			$SA_backupCallDay	= $row['SA_backupCallDay'];
			$SA_backupCallTime	= $row['SA_backupCallTime'];
			$SA_isSubMenu		= $row['SA_isSubMenu'];
			$SA_upFileArea		= $row['SA_upFileArea'];
			$SA_upFileOss		= $row['SA_upFileOss'];
			$SA_workOrderSec	= $row['SA_workOrderSec'];
			$SA_workOrderEvent	= $row['SA_workOrderEvent'];
			$SA_upFileExtList	= $row['SA_upFileExtList'];
			$SA_event			= $row['SA_event'];
			$SA_tplDir			= $row['SA_tplDir'];
			$SA_menuMode		= $row['SA_menuMode'];
			$SA_autoLoginKey	= $row['SA_autoLoginKey'];
			$SA_infoCloseArea	= $row['SA_infoCloseArea'];
			$SA_funcCloseArea	= $row['SA_funcCloseArea'];
			$SA_skinWidth2		= $row['SA_skinWidth2'];
			$SA_dataArr			= $row['SA_dataArr'];
				if (! strtotime($SA_backupCallTime)){
					$SA_backupCallTime='2015-1-1';
				}else{
					$SA_backupCallTime = TimeDate::Get('date',$SA_backupCallTime);
				}
		}
	unset($revexe);

	$workOrderEventItem = '';
	if (AppReport::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|report|" '. Is::InstrChecked($SA_workOrderEvent,'|report|') .' />举报'. Skin::PluSign('举报模块','bottom') .'</label>&ensp;&ensp;';
	}
	if (AppSiteMessage::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|siteMessage|" '. Is::InstrChecked($SA_workOrderEvent,'|siteMessage|') .' />站内信息'. Skin::PluSign('站内信息','bottom') .'</label>&ensp;&ensp;';
	}
	if (AppGift::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|gift|" '. Is::InstrChecked($SA_workOrderEvent,'|gift|') .' />积分商城订单'. Skin::PluSign('积分商城','bottom') .'</label>&ensp;&ensp;';
	}
	if (AppGain::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|gain|" '. Is::InstrChecked($SA_workOrderEvent,'|gain|') .' />推广提现'. Skin::PluSign('推广提现','bottom') .'</label>&ensp;&ensp;';
	}
	if (AppDiyPay::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|diyPay|" '. Is::InstrChecked($SA_workOrderEvent,'|diyPay|') .' />手动充值'. Skin::PluSign('扫码充值手动录入','bottom') .'</label>&ensp;&ensp;';
	}
	if (AppOnePage::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|onePage|" '. Is::InstrChecked($SA_workOrderEvent,'|onePage|') .' />功能单页审核'. Skin::PluSign('功能单页','bottom') .'</label>&ensp;&ensp;';
	}
	if (AppBuyOrders::Jud()){
		$workOrderEventItem .= '<label><input type="checkbox" name="workOrderEvent[]" value="|buyOrders|" '. Is::InstrChecked($SA_workOrderEvent,'|buyOrders|') .' />会员订单记录审核'. Skin::PluSign('会员订单记录','bottom') .'</label>&ensp;&ensp;';
	}

	echo('
	<form id="dealForm" name="dealForm" method="post" action="sysAdmin_deal.php?mudi=deal" onsubmit="return CheckForm()">
	<script language="javascript" type="text/javascript">document.write(\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>

	<div class="tabMenu">
	<div style="float:right;padding:6px 5px 0 0;">
		<input type="button" style="color:blue;" value="模式、路线恢复默认值" onclick=\'document.location.href="sysAdmin_deal.php?mudi=saveDef&backURL="+ encodeURIComponent(document.location.href);\' />
		<input type="button" value="菜单网址优化" title="减少后台菜单网址中无用参数信息" onclick=\'document.location.href="sysAdmin_deal.php?mudi=menuUrlSimp&backURL="+ encodeURIComponent(document.location.href);\' />
	</div>
	<ul>
		<li rel="tabSite" class="selected">网站模式</li>
		<li rel="tabDef">引导页设置</li>
	</ul>
	</div>

	<div class="tabMenuArea">
		<table id="tabSite" cellpadding="0" cellspacing="0" summary="" class="padd5">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">通信密钥：</td>
			<td class="font2_2">
				<input type="text" id="adminLoginKey" name="adminLoginKey" style="width:350px;" maxlength="36" value="'. $SA_adminLoginKey .'" />
				&ensp;<input type="button" value="随机36位" onclick=\'$id("adminLoginKey").value=RndNum(36);\' />
				<br />（会直接影响后台在登录状态中用户，致使他们要重新登录。）
			</td>
		</tr>
		<tr>
			<td align="right">后台模板：</td>
			<td>
				<label><input type="radio" id="tplDir_youyou" name="tplDir" value="youyou/" '. Is::Checked($SA_tplDir,'youyou/') .' onclick="CheckTplDir()" />悠悠设计【推荐】(感谢悠悠免费贡献)</label>&ensp;&ensp;
				<label title="该模板承载了太多网钛回忆，虽然很老旧，但不舍得删除。"><input type="radio" id="tplDir_default" name="tplDir" value="default/" '. Is::Checked($SA_tplDir,'default/') .' onclick="CheckTplDir()" />2010版经典模板【不推荐，个别高级功能不可用】</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="tplDirYouyou">
		<tr style="display:none;">
			<td align="right">后台界面宽度：</td>
			<td>
				<label><input type="radio" name="skinWidth2" value="0" '. Is::Checked($SA_skinWidth2,0) .' />宽屏100%</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth2" value="1259" '. Is::Checked($SA_skinWidth2,1259) .' />1280px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth2" value="1339" '. Is::Checked($SA_skinWidth2,1339) .' />1360px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth2" value="1579" '. Is::Checked($SA_skinWidth2,1579) .' />1600px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth2" value="1659" '. Is::Checked($SA_skinWidth2,1659) .' />1680px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth2" value="1003" '. Is::Checked($SA_skinWidth2,1003) .' />1024px(不推荐)</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth2" value="1131" '. Is::Checked($SA_skinWidth2,1131) .' />1152px(不推荐)</label>&ensp;&ensp;
				<span style="color:red;">&ensp;（仅对 <b>悠悠设计</b> 有效）</span>
			</td>
		</tr>
		<tr>
			<td align="right">悠悠模板属性：</td>
			<td>
				<label><input type="checkbox" name="event[]" value="|topNav|" '. Is::InstrChecked($SA_event,'|topNav|') .' />头部主菜单模式</label>
			</td>
		</tr>
		</tbody>
		<tbody id="tplDirDefault">
		<tr>
			<td align="right">后台界面宽度：</td>
			<td>
				<label><input type="radio" name="skinWidth" value="1003" '. Is::Checked($SA_skinWidth,1003) .' />1024px(不推荐)</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth" value="1131" '. Is::Checked($SA_skinWidth,1131) .' />1152px(不推荐)</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth" value="1259" '. Is::Checked($SA_skinWidth,1259) .' />1280px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth" value="1339" '. Is::Checked($SA_skinWidth,1339) .' />1360px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth" value="1579" '. Is::Checked($SA_skinWidth,1579) .' />1600px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth" value="1659" '. Is::Checked($SA_skinWidth,1659) .' />1680px</label>&ensp;&ensp;
				<label><input type="radio" name="skinWidth" value="0" '. Is::Checked($SA_skinWidth,0) .' />宽屏100%</label>&ensp;&ensp;
				<span style="color:red;">&ensp;（仅对 <b>2010版经典模板</b> 有效）</span>
			</td>
		</tr>
		</tbody>
		<tr>
			<td align="right">后台登录保存方式：</td>
			<td>
				<label><input type="radio" name="userSaveMode" value="1" '. Is::Checked($SA_userSaveMode,1) .' />仅session保存<span class="font2_2">(安全)</span></label>&ensp;&ensp;
				<label><input type="radio" name="userSaveMode" value="2" '. Is::Checked($SA_userSaveMode,2) .' />session + cookies保存<span class="font2_2">(持久)</span></label>
			</td>
		</tr>
		<tr>
			<td align="right">后台用户登录模式：</td>
			<td>
				<label><input type="radio" name="loginMode" value="0" '. Is::Checked($SA_loginMode,0) .' />允许一个账号多人同用</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="loginMode" value="1" '. Is::Checked($SA_loginMode,1) .' />仅允许一个账号一人使用</label>
			</td>
		</tr>
		<tr>
			<td align="right">内网使用：</td>
			<td>
				<label><input type="radio" name="isLan" value="1" '. Is::Checked($SA_isLan,1) .' />是</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isLan" value="0" '. Is::Checked($SA_isLan,0) .' />否</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<!-- <tr>
			<td align="right">简化后台菜单：</td>
			<td>
				<label><input type="radio" name="menuMode" value="1" '. Is::Checked($SA_menuMode,1) .' />开启</label>&ensp;&ensp;
				<label><input type="radio" name="menuMode" value="0" '. Is::Checked($SA_menuMode,0) .' />关闭</label>&ensp;&ensp;
			</td>
		</tr> -->
		<tr>
			<td align="right">标签菜单卡：</td>
			<td>
				<label><input type="radio" name="isSubMenu" value="1" '. Is::Checked($SA_isSubMenu,1) .' />开启</label>&ensp;&ensp;
				<label><input type="radio" name="isSubMenu" value="0" '. Is::Checked($SA_isSubMenu,0) .' />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right">后台授权页面获取模式：</td>
			<td>
				<label><input type="radio" name="sendUrlMode" value="0" '. Is::Checked($SA_sendUrlMode,0) .' />默认</label>&ensp;&ensp;
				<label><input type="radio" name="sendUrlMode" value="1" '. Is::Checked($SA_sendUrlMode,1) .' />AJAX</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right">后台授权页面获取路线：</td>
			<td>
				<label><input type="radio" name="checkUrlMode" value="0" '. Is::Checked($SA_checkUrlMode,0) .' />主路线<span style="color:red;">（默认）</span></label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="checkUrlMode" value="1" '. Is::Checked($SA_checkUrlMode,1) .' />国内备用路线</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="checkUrlMode" value="2" '. Is::Checked($SA_checkUrlMode,2) .' />香港备用路线</label>&ensp;&ensp;<span style="cursor:pointer;" onclick=\'ClickShowHidden("usUrlBox1");ClickShowHidden("usUrlBox2");\'>&ensp;&ensp;</span>
				<label id="usUrlBox1" style="display:;"><input type="radio" name="checkUrlMode" value="3" '. Is::Checked($SA_checkUrlMode,3) .' />美国备用路线</label>
			</td>
		</tr>
		<tr>
			<td align="right">后台授权信息获取路线：</td>
			<td>
				<label><input type="radio" name="updateUrlMode" value="0" '. Is::Checked($SA_updateUrlMode,0) .' />主路线<span style="color:red;">（默认）</span></label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="updateUrlMode" value="1" '. Is::Checked($SA_updateUrlMode,1) .' />国内备用路线</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="updateUrlMode" value="2" '. Is::Checked($SA_updateUrlMode,2) .' />香港备用路线</label>&ensp;&ensp;&ensp;&ensp;
				<label id="usUrlBox2" style="display:;"><input type="radio" name="updateUrlMode" value="3" '. Is::Checked($SA_updateUrlMode,3) .' />美国备用路线</label>
			</td>
		</tr>
		<tr>
			<td align="right">后台授权调用模式：</td>
			<td>
				<label><input type="radio" name="getUrlMode" value="0" '. Is::Checked($SA_getUrlMode,0) .' />自动(默认)</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="getUrlMode" value="2" '. Is::Checked($SA_getUrlMode,2) .' />curl模式<span style="color:red;">[推荐]</span>&ensp;'. ExtCN(extension_loaded('curl')) .'</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="getUrlMode" value="1" '. Is::Checked($SA_getUrlMode,1) .' />Snoopy插件&ensp;'. ExtCN(function_exists('stream_socket_client')) .'</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="getUrlMode" value="3" '. Is::Checked($SA_getUrlMode,3) .' />fsockopen模式<span style="color:red;">(用万网空间选这个)</span>&ensp;'. ExtCN(function_exists('fsockopen')) .'</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="getUrlMode" value="4" '. Is::Checked($SA_getUrlMode,4) .' />fopen模式&ensp;'. ExtCN(ini_get('allow_url_fopen')==1 || strtolower(ini_get('allow_url_fopen'))=='on') .'</label>
			</td>
		</tr>
		<tr>
			<td align="right">后台采集调用模式：</td>
			<td>
				<label><input type="radio" name="collUrlMode" value="0" '. Is::Checked($SA_collUrlMode,0) .' />自动(默认)</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="collUrlMode" value="2" '. Is::Checked($SA_collUrlMode,2) .' />curl模式<span style="color:red;">[推荐]</span>&ensp;'. ExtCN(extension_loaded('curl')) .'</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="collUrlMode" value="1" '. Is::Checked($SA_collUrlMode,1) .' />Snoopy插件&ensp;'. ExtCN(function_exists('stream_socket_client')) .'</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="collUrlMode" value="3" '. Is::Checked($SA_collUrlMode,3) .' />fsockopen模式<span style="color:red;">(用万网空间选这个)</span>&ensp;'. ExtCN(function_exists('fsockopen')) .'</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="collUrlMode" value="4" '. Is::Checked($SA_collUrlMode,4) .' />fopen模式&ensp;'. ExtCN(ini_get('allow_url_fopen')==1 || strtolower(ini_get('allow_url_fopen'))=='on') .'</label>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">后台编辑器：</td>
			<td class="editorBox">
				'. AdmArea::EditorList('admin', 'editorMode', $SA_editorMode) .'
			</td>
		</tr>
		<tr>
			<td align="right">后台上传文件默认保存在：</td>
			<td>
				<label><input type="radio" name="upFileOss" value="web" '. Is::Checked($SA_upFileOss,'web') .' />网站</label><span style="color:red;">（默认）</span>&ensp;&ensp;&ensp;
				'. AppOssQiniu::Show('<label><input type="radio" name="upFileOss" value="qiniu" '. Is::Checked($SA_upFileOss,'qiniu') .' />七牛云</label>&ensp;&ensp;&ensp;') .'
				'. AppOssUpyun::Show('<label><input type="radio" name="upFileOss" value="upyun" '. Is::Checked($SA_upFileOss,'upyun') .' />又拍云</label>&ensp;&ensp;&ensp;') .'
				'. AppOssAliyun::Show('<label><input type="radio" name="upFileOss" value="aliyun" '. Is::Checked($SA_upFileOss,'aliyun') .' />阿里云</label>&ensp;&ensp;&ensp;') .'
				'. AppOssFtp::Show('<label><input type="radio" name="upFileOss" value="ftp" '. Is::Checked($SA_upFileOss,'ftp') .' />FTP云存储</label>&ensp;&ensp;&ensp;') .'
			</td>
		</tr>
		<tr>
			<td align="right">后台用户登录超时时间：</td>
			<td>
				<input type="text" name="exitMinute" value="'. $SA_exitMinute .'" style="width:50px;" onkeyup="if (this.value!=FiltInt(this.value)){this.value=FiltInt(this.value)}" />分钟
				<span class="font2_2">&ensp;(值如为0，则表示无时间限制)</span>
			</td>
		</tr>
		<tr>
			<td align="right">提示待处理信息频率：</td>
			<td>
				<input type="text" name="workOrderSec" value="'. $SA_workOrderSec .'" style="width:50px;" onkeyup="if (this.value!=FiltInt(this.value)){this.value=FiltInt(this.value)}" />秒 检测一次（<label><input type="checkbox" name="workOrderEvent[]" value="|sound|" '. Is::InstrChecked($SA_workOrderEvent,'|sound|') .' />开启提示音</label>）
				<span class="font2_2">&ensp;(值如为0，则表示关闭该功能，默认推荐60秒)</span>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">提示待处理信息范围：</td>
			<td style="line-height:1.6;">
				<label><input type="checkbox" name="workOrderEvent[]" value="|userState|" '. Is::InstrChecked($SA_workOrderEvent,'|userState|') .' />未审核会员</label>&ensp;&ensp;
				<label><input type="checkbox" name="workOrderEvent[]" value="|userShiming|" '. Is::InstrChecked($SA_workOrderEvent,'|userShiming|') .' />实名审核会员</label>&ensp;&ensp;
				<label><input type="checkbox" name="workOrderEvent[]" value="|userInfo|" '. Is::InstrChecked($SA_workOrderEvent,'|userInfo|') .' />会员投稿</label>&ensp;&ensp;
				'. $workOrderEventItem .'
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">教程网址关闭范围：</td>
			<td style="line-height:1.6;">
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|appShop|" '. Is::InstrChecked($SA_infoCloseArea,'|appShop|') .' />插件平台</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|system|" '. Is::InstrChecked($SA_infoCloseArea,'|system|') .' />常规设置→网站参数设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|appSys|" '. Is::InstrChecked($SA_infoCloseArea,'|appSys|') .' />常规设置→插件参数设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|autoRunSys|" '. Is::InstrChecked($SA_infoCloseArea,'|userState|') .' />常规设置→自动操作设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|ca|" '. Is::InstrChecked($SA_infoCloseArea,'|ca|') .' />常规设置→广告管理</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|info|" '. Is::InstrChecked($SA_infoCloseArea,'|info|') .' />文章管理→新增/修改文章</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|collItem|" '. Is::InstrChecked($SA_infoCloseArea,'|collItem|') .' />采集管理→采集项目管理</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|mailInfo|" '. Is::InstrChecked($SA_infoCloseArea,'|mailInfo|') .' />辅助管理→邮箱设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|phoneSys|" '. Is::InstrChecked($SA_infoCloseArea,'|phoneSys|') .' />辅助管理→短信参数设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|makeHtml|" '. Is::InstrChecked($SA_infoCloseArea,'|makeHtml|') .' />辅助管理→静态页管理</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|tplSys|" '. Is::InstrChecked($SA_infoCloseArea,'|tplSys|') .' />模板功能→模板参数设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|template|" '. Is::InstrChecked($SA_infoCloseArea,'|template|') .' />模板功能→模板管理</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|userApi|" '. Is::InstrChecked($SA_infoCloseArea,'|userApi|') .' />会员管理→快捷登录管理</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|moneySys|" '. Is::InstrChecked($SA_infoCloseArea,'|moneySys|') .' />财务管理→财务参数设置</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|wap|" '. Is::InstrChecked($SA_infoCloseArea,'|wap|') .' />移动端管理→WAP手机版</label>&ensp;&ensp;
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|taokeGoods|" '. Is::InstrChecked($SA_infoCloseArea,'|taokeGoods|') .' />淘宝客管理→淘客商品管理</label>&ensp;&ensp;
				<!-- <label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|taokeSys|" '. Is::InstrChecked($SA_infoCloseArea,'|taokeSys|') .' />淘宝客管理→淘客参数设置</label>&ensp;&ensp;; -->
				<label style="width:210px;"><input type="checkbox" name="infoCloseArea[]" value="|OTadmin|" '. Is::InstrChecked($SA_infoCloseArea,'|OTadmin|') .' />【对超级管理员全显示】</label>&ensp;&ensp;
			</td>
		</tr>
		<!-- <tr>
			<td align="right">后台右侧默认页：</td>
			<td>
				<label><input type="radio" name="leftMenuNote" value="server" '. Is::Checked($SA_leftMenuNote,'server') .' />服务器信息</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="leftMenuNote" value="shop" '. Is::Checked($SA_leftMenuNote,'shop') .' />网店信息</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="leftMenuNote" value="menu" '. Is::Checked($SA_leftMenuNote,'menu') .' />常用菜单列表</label>
			</td>
		</tr>
		<tr>
			<td align="right">后台人员操作日志等级：</td>
			<td>
				<label><input type="radio" name="memberLogRank" value="0" '. Is::Checked($SA_memberLogRank,0) .' />关闭</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="memberLogRank" value="10" '. Is::Checked($SA_memberLogRank,10) .' />只记录用户登录/退出</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="memberLogRank" value="20" '. Is::Checked($SA_memberLogRank,20) .' />全部简约记录</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="memberLogRank" value="30" '. Is::Checked($SA_memberLogRank,30) .' />全部详细记录</label>
			</td>
		</tr> -->
		<tr>
			<td align="right">'. Skin::PluSign('后台多网站登录管理') .'后台快捷登录：</td>
			<td>
				<label><input type="radio" id="isAutoLogin1" name="isAutoLogin" value="1" '. Is::Checked($SA_isAutoLogin,1) .' onclick="CheckAutoLogin()" />开启</label>&ensp;&ensp;
				<label><input type="radio" id="isAutoLogin2" name="isAutoLogin" value="0" '. Is::Checked($SA_isAutoLogin,0) .' onclick="CheckAutoLogin()" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tr id="autoLoginBox">
			<td align="right">'. Skin::PluSign0('后台多网站登录管理') .'快捷登录通信密钥：</td>
			<td class="font2_2">
				<input type="text" id="autoLoginKey" name="autoLoginKey" style="width:350px;" maxlength="36" value="'. $SA_autoLoginKey .'" />
				&ensp;<input type="button" value="随机36位" onclick=\'$id("autoLoginKey").value=RndNum(36);\' />
			</td>
		</tr>
		<tr>
			<td align="right">自定义底部版权名称：</td>
			<td class="font2_2">
				<input type="text" id="copyrightName" name="copyrightName" style="width:500px;" value="'. $SA_copyrightName .'" />
			</td>
		</tr>
		<tr>
			<td align="right">自定义底部版权网址：</td>
			<td class="font2_2">
				<input type="text" id="copyrightUrl" name="copyrightUrl" style="width:500px;" value="'. $SA_copyrightUrl .'" />
			</td>
		</tr>
		<tr>
			<td align="right">在线升级网址：</td>
			<td class="font2_2">
				<input type="text" id="updateUrl" name="updateUrl" style="width:500px;" value="'. $SA_updateUrl .'" />
			</td>
		</tr>
		</table>


		<table id="tabDef" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">功能模块关闭：</td>
			<td style="line-height:1.6;">
				<label><input type="checkbox" name="funcCloseArea[]" value="|siteStati|" '. Is::InstrChecked($SA_funcCloseArea,'|siteStati|') .' />网站统计信息</label>（
					<label><input type="checkbox" name="funcCloseArea[]" value="|statiUsers|" '. Is::InstrChecked($SA_funcCloseArea,'|statiUsers|') .' />会员</label>、
					<label><input type="checkbox" name="funcCloseArea[]" value="|statiUsers0|" '. Is::InstrChecked($SA_funcCloseArea,'|statiUsers0|') .' />待审核会员</label>、
					<label><input type="checkbox" name="funcCloseArea[]" value="|statiInfoUser|" '. Is::InstrChecked($SA_funcCloseArea,'|statiInfoUser|') .' />会员发稿数</label>、
					<label><input type="checkbox" name="funcCloseArea[]" value="|statiInfoUser0|" '. Is::InstrChecked($SA_funcCloseArea,'|statiInfoUser0|') .' />会员待审核文章</label>、
					<label><input type="checkbox" name="funcCloseArea[]" value="|statiInfoMessage|" '. Is::InstrChecked($SA_funcCloseArea,'|statiInfoMessage|') .' />文章评论</label>、
					<label><input type="checkbox" name="funcCloseArea[]" value="|statiMessage|" '. Is::InstrChecked($SA_funcCloseArea,'|statiMessage|') .' />留言</label>
				）&ensp;&ensp;
				<label><input type="checkbox" name="funcCloseArea[]" value="|robotRecord|" '. Is::InstrChecked($SA_funcCloseArea,'|robotRecord|') .' />'. AreaApp::ItemShow(AppRobot::Jud(), '蜘蛛爬行') . Skin::PluSign('访客雷达/蜘蛛爬行','bottom') .'</label>&ensp;&ensp;
				<label><input type="checkbox" name="funcCloseArea[]" value="|robotUserStati|" '. Is::InstrChecked($SA_funcCloseArea,'|robotUserStati|') .' />'. AreaApp::ItemShow(AppRobot::Jud(), '访客统计') . Skin::PluSign('访客雷达/蜘蛛爬行','bottom') .'</label>&ensp;&ensp;
				<label><input type="checkbox" name="funcCloseArea[]" value="|memberLog|" '. Is::InstrChecked($SA_funcCloseArea,'|memberLog|') .' />最近后台操作记录</label>&ensp;&ensp;
				<label><input type="checkbox" name="funcCloseArea[]" value="|OTannoun|" '. Is::InstrChecked($SA_funcCloseArea,'|OTannoun|') .' />官方最新公告</label>&ensp;&ensp;
				<label><input type="checkbox" name="funcCloseArea[]" value="|OTadmin|" '. Is::InstrChecked($SA_funcCloseArea,'|OTadmin|') .' />【对超级管理员全显示】</label>&ensp;&ensp;
				<label style="color:red;font-weight:bold;"><input type="checkbox" name="funcCloseArea[]" value="|info|" '. Is::InstrChecked($SA_funcCloseArea,'|info|') .' />【文章系统】</label>&ensp;&ensp;
				<label style="color:red;font-weight:bold;"><input type="checkbox" name="funcCloseArea[]" value="|users|" '. Is::InstrChecked($SA_funcCloseArea,'|users|') .' />【会员系统】</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right">连接网络获取程序信息：</td>
			<td>
				<label><input type="radio" name="isConnInternet" value="1" '. Is::Checked($SA_isConnInternet,1) .' />开启</label>&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isConnInternet" value="0" '. Is::Checked($SA_isConnInternet,0) .' />关闭</label>
				<span class="font2_2">&ensp;&ensp;(开启【内网使用】项，等于该项[关闭])</span>
			</td>
		</tr>
		<tr>
			<td align="right">网钛信息：</td>
			<td>
				<label><input type="radio" name="isAnnounShow" value="1" '. Is::Checked($SA_isAnnounShow,1) .' />自动刷新</label>&ensp;&ensp;&ensp;
				<label><input type="radio" name="isAnnounShow" value="0" '. Is::Checked($SA_isAnnounShow,0) .' />手动刷新</label>
			</td>
		</tr>
		<tr>
			<td align="right">数据库备份定期提醒：</td>
			<td>
				<input type="text" name="backupCallDay" value="'. $SA_backupCallDay .'" style="width:50px;" onkeyup="if (this.value!=FiltNumber(this.value)){this.value=FiltNumber(this.value)}" />&ensp;天以后
				<span class="font2_2">&ensp;(值如为0表示关闭提醒)</span>
				&ensp;&ensp;（最后提醒日期：'. $SA_backupCallTime .'，下一次提醒日期：'. TimeDate::Add('d',$SA_backupCallDay,$SA_backupCallTime) .'）
			</td>
		</tr>
		<tr>
			<td align="right">授权信息更新：</td>
			<td>
				<input type="text" name="softUpdateDay" value="'. $SA_softUpdateDay .'" style="width:50px;" onkeyup="if (this.value!=FiltNumber(this.value)){this.value=FiltNumber(this.value)}" />&ensp;天/次
				<span class="font2_2">&ensp;(值如为0表示立即更新；-1表示不更新)</span>
				&ensp;&ensp;（最后更新时间：'. $SA_softLastTime .'）
			</td>
		</tr>
		<tr>
			<td align="right">程序最新版本检测：</td>
			<td>
				<input type="text" name="softVerUpdateDay" value="'. $SA_softVerUpdateDay .'" style="width:50px;" onkeyup="if (this.value!=FiltNumber(this.value)){this.value=FiltNumber(this.value)}" />&ensp;天/次
				<span class="font2_2">&ensp;(值如为0表示立即检测；-1表示不检测)</span>
				&ensp;&ensp;（最后检测时间：'. $SA_softVerLastTime .'）
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">域名白名单：</td>
			<td>
				<div style="color:red;font-weight:bold;">如果获取授权信息、升级信息不行，检查是否被服务器安全软件或服务器商拦截，放行下面几个域名</div>
				<div>*.otcms.com</div>
				<div>*.otcms.cn</div>
				<div>*.otcms.net</div>
				<div>*.oneti.cn</div>
			</td>
		</tr>
		</table>

		<div class="tabMenuSubmit"><input type="image" src="'. AdmTpl::ImgSrc('button_save') .'" /></div>
	</div>

	</form>
	');

}



function ExtCN($jud){
	if ($jud){
		return '<span style="color:green;">支持</span>';
	}else{
		return '<span style="color:red;">不支持</span>';
	}
}

?>